#include <stdio.h>

int main() {
    float amount, fee;

    scanf("%f", &amount);
    if (amount > 100) {
        fee = 0;
    } else if (amount > 50) {
        fee = 10 + (amount - 50)*0.10;
    } else {
        fee = 10;
    }

    printf("amount = %f, fee = %f\n", amount, fee);
    return 0;
}
